package domain;

/**
 * 书本实体类
 */
public class Book {
    //名称、书编号、价格、状态，作者、出版社，说明
    private String name;
    private String bookno;
    private String privce;
    private String auth;
    private String state;
    private String cbs;
    private String content;

    public Book(String bookno, String state) {
        this.bookno = bookno;
        this.state = state;
    }

    public Book() {

    }

    public Book(String name, String bookno, String privce, String auth, String cbs, String state, String content) {
        this.name = name;
        this.bookno = bookno;
        this.privce = privce;
        this.auth = auth;
        this.state = state;
        this.cbs = cbs;
        this.content = content;

    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getBookno() {
        return bookno;
    }

    public void setBookno(String bookno) {
        this.bookno = bookno;
    }

    public String getPrivce() {
        return privce;
    }

    public void setPrivce(String privce) {
        this.privce = privce;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getAuth() {
        return auth;
    }

    public void setAuth(String auth) {
        this.auth = auth;
    }

    public String getCbs() {
        return cbs;
    }

    public void setCbs(String cbs) {
        this.cbs = cbs;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Override
    public String toString() {
        return "Book{" +
                "name='" + name + '\'' +
                ", bookno='" + bookno + '\'' +
                ", privce='" + privce + '\'' +
                ", state='" + state + '\'' +
                ", auth='" + auth + '\'' +
                ", cbs='" + cbs + '\'' +
                ", content='" + content + '\'' +
                '}';
    }
}
